package top.lingkang.finalgateway.core;

import lombok.Data;
import top.lingkang.finalgateway.config.NextTarget;
import top.lingkang.finalgateway.config.RouterType;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author lingkang
 * @create by 2024/4/26 14:12
 */
@Data
public class RequestHandler {
    private RouterType type;
    // 远程
    private String uri;
    private transient NextTarget[] nextTargets;
    // 线程安全
    private AtomicInteger next = new AtomicInteger(0);

    // 静态文件
    private StaticFile file;
    private boolean fileCache;

}
